|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.Writer
|
+--javax.servlet.jsp.JspWriter
|
+--javax.servlet.jsp.tagext.BodyContent
|
+--com.caucho.jsp.QBodyContent
Implementation of the JSP 1.1 BodyContent interface.
| Fields inherited from class javax.servlet.jsp.JspWriter |
autoFlush, bufferSize, DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER |
| Fields inherited from class java.io.Writer |
lock |
| Method Summary | |
void |
clear()
Clear the contents of the buffer. |
void |
clearBody()
Clears the body contents. |
void |
clearBuffer()
Clears the current contents of the buffer. |
void |
close()
Close the stream, flushing it first |
void |
flush()
Redefined flush() so it is not legal. |
int |
getBufferSize()
This method returns the size of the buffer used by the JspWriter. |
JspWriter |
getEnclosingWriter()
Returns the enclosing writer. |
java.io.Reader |
getReader()
Returns a reader to the body content. |
int |
getRemaining()
This method returns the number of unused bytes in the buffer. |
java.lang.String |
getString()
Returns a string representing the body content. |
WriteStream |
getWriteStream()
Returns the underlying write stream for the content. |
boolean |
isAutoFlush()
This method indicates whether the JspWriter is autoFlushing. |
void |
newLine()
Writes a newline to the stream. |
void |
print(boolean b)
Print a boolean value. |
void |
print(char ch)
Print a character. |
void |
print(char[] s)
Print an array of characters. |
void |
print(double d)
Print a double-precision floating-point number. |
void |
print(float f)
Print a floating-point number. |
void |
print(int i)
Print an integer. |
void |
print(long l)
Print a long integer. |
void |
print(java.lang.Object o)
Print an object. |
void |
print(java.lang.String s)
Print a string. |
void |
println()
Terminate the current line by writing the line separator string. |
void |
println(boolean b)
Print a boolean value and then terminate the line. |
void |
println(char ch)
Print a character and then terminate the line. |
void |
println(char[] s)
Print an array of characters and then terminate the line. |
void |
println(double d)
Print a double-precision floating-point number and then terminate the line. |
void |
println(float f)
Print a floating-point number and then terminate the line. |
void |
println(int i)
Print an integer and then terminate the line. |
void |
println(long l)
Print a long integer and then terminate the line. |
void |
println(java.lang.Object o)
Print an Object and then terminate the line. |
void |
println(java.lang.String s)
Print a String and then terminate the line. |
void |
release()
Releases the body content at the end of the tag. |
void |
write(byte[] buf,
int off,
int len)
Writes bytes to the stream. |
void |
write(char[] buf)
Writes characters to the stream. |
void |
write(char[] buf,
int off,
int len)
Writes characters to the stream. |
void |
write(int i)
Writes an integer to the stream. |
void |
write(java.lang.String s)
Writes a string to the stream. |
void |
write(java.lang.String s,
int off,
int len)
Writes a substring to the stream. |
void |
writeOut(java.io.Writer out)
Writes the body contents out to the named writer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public WriteStream getWriteStream()
getWriteStream in interface EnclosedWriteStreampublic JspWriter getEnclosingWriter()
getEnclosingWriter in class BodyContentjavax.servlet.jsp.tagext.BodyContent
public final void write(byte[] buf,
int off,
int len)
throws java.io.IOException
write in interface ByteWriteStreambuf - byte bufferoff - starting offset into the bufferlen - length of valid bytes in the buffer.
public final void write(char[] buf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerbuf - character bufferoff - starting offset into the bufferlen - length of valid bytes in the buffer.
public final void write(int i)
throws java.io.IOException
write in class java.io.Writeri - the integer to write
public final void write(char[] buf)
throws java.io.IOException
write in class java.io.Writerbuf - character buffer
public final void write(java.lang.String s)
throws java.io.IOException
write in class java.io.Writers - the string to write
public final void write(java.lang.String s,
int off,
int len)
throws java.io.IOException
write in class java.io.Writers - the string to writeoff - starting offset into the stringlen - length of the substring
public final void newLine()
throws java.io.IOException
newLine in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException - If an I/O error occurs
public final void print(boolean b)
throws java.io.IOException
JspWriterString.valueOf(boolean) is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the Writer.write(int) method.print in class JspWriterjavax.servlet.jsp.JspWriterb - The boolean to be printedjava.io.IOException -
public final void print(char ch)
throws java.io.IOException
JspWriterWriter.write(int) method.print in class JspWriterjavax.servlet.jsp.JspWriterc - The char to be printedjava.io.IOException -
public final void print(int i)
throws java.io.IOException
JspWriterString.valueOf(int) is translated into bytes according
to the platform's default character encoding, and these bytes are
written in exactly the manner of the Writer.write(int)
method.print in class JspWriterjavax.servlet.jsp.JspWriteri - The int to be printedjava.io.IOException - java.lang.Integer#toString(int)
public final void print(long l)
throws java.io.IOException
JspWriterString.valueOf(long) is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the Writer.write(int)
method.print in class JspWriterjavax.servlet.jsp.JspWriterl - The long to be printedjava.io.IOException - java.lang.Long#toString(long)
public final void print(float f)
throws java.io.IOException
JspWriterString.valueOf(float) is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the Writer.write(int)
method.print in class JspWriterjavax.servlet.jsp.JspWriterf - The float to be printedjava.io.IOException - java.lang.Float#toString(float)
public final void print(double d)
throws java.io.IOException
JspWriterString.valueOf(double) is translated into
bytes according to the platform's default character encoding, and these
bytes are written in exactly the manner of the Writer.write(int) method.print in class JspWriterjavax.servlet.jsp.JspWriterd - The double to be printedjava.io.IOException - java.lang.Double#toString(double)
public final void print(char[] s)
throws java.io.IOException
JspWriterWriter.write(int)
method.print in class JspWriterjavax.servlet.jsp.JspWriters - The array of chars to be printedNullPointerException - If s is nulljava.io.IOException -
public final void print(java.lang.String s)
throws java.io.IOException
JspWriternull then the string
"null" is printed. Otherwise, the string's characters are
converted into bytes according to the platform's default character
encoding, and these bytes are written in exactly the manner of the
Writer.write(int) method.print in class JspWriterjavax.servlet.jsp.JspWriters - The String to be printedjava.io.IOException -
public final void print(java.lang.Object o)
throws java.io.IOException
JspWriterString.valueOf(Object) method is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the Writer.write(int)
method.print in class JspWriterjavax.servlet.jsp.JspWriterobj - The Object to be printedjava.io.IOException - Object.toString()
public final void println()
throws java.io.IOException
JspWriterline.separator, and is not necessarily a single newline
character ('\n').println in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException -
public final void println(boolean b)
throws java.io.IOException
JspWriterJspWriter.print(boolean) and then
JspWriter.println().println in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException -
public final void println(char ch)
throws java.io.IOException
JspWriterJspWriter.print(char) and then JspWriter.println().println in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException -
public final void println(int i)
throws java.io.IOException
JspWriterJspWriter.print(int) and then JspWriter.println().println in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException -
public final void println(long l)
throws java.io.IOException
JspWriterJspWriter.print(long) and then
JspWriter.println().println in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException -
public final void println(float f)
throws java.io.IOException
JspWriterJspWriter.print(float) and then
JspWriter.println().println in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException -
public final void println(double d)
throws java.io.IOException
JspWriterJspWriter.print(double) and then JspWriter.println().println in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException -
public final void println(char[] s)
throws java.io.IOException
JspWriterprint(char[]) and then
println().println in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException -
public final void println(java.lang.String s)
throws java.io.IOException
JspWriterJspWriter.print(String) and then
JspWriter.println().println in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException -
public final void println(java.lang.Object o)
throws java.io.IOException
JspWriterJspWriter.print(Object) and then
JspWriter.println().println in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException -
public final void clear()
throws java.io.IOException
JspWriterclear in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException - If an I/O error occurs
public final void clearBuffer()
throws java.io.IOException
JspWriterclearBuffer in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException - If an I/O error occurs
public final void flush()
throws java.io.IOException
BodyContentIt is not valid to flush a BodyContent because there is no backing stream behind it.
flush in class BodyContentjavax.servlet.jsp.JspWriterjava.io.IOException - If an I/O error occurs
public final void close()
throws java.io.IOException
JspWriterThis method needs not be invoked explicitly for the initial JspWriter as the code generated by the JSP container will automatically include a call to close().
Closing a previously-closed stream, unlike flush(), has no effect.
close in class JspWriterjavax.servlet.jsp.JspWriterjava.io.IOException - If an I/O error occurspublic final int getBufferSize()
JspWritergetBufferSize in class JspWriterjavax.servlet.jsp.JspWriterpublic final int getRemaining()
JspWritergetRemaining in class JspWriterjavax.servlet.jsp.JspWriterpublic final boolean isAutoFlush()
JspWriterisAutoFlush in class JspWriterjavax.servlet.jsp.JspWriterpublic void clearBody()
clearBody in class BodyContentpublic java.io.Reader getReader()
getReader in class BodyContentjavax.servlet.jsp.tagext.BodyContentpublic java.lang.String getString()
getString in class BodyContentjavax.servlet.jsp.tagext.BodyContent
public void writeOut(java.io.Writer out)
throws java.io.IOException
writeOut in class BodyContentjavax.servlet.jsp.tagext.BodyContentout - The writer into which to place the contents of
this body evaluation
public void release()
throws java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||